package soft863.com.mr3;

import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class sort_rd extends Reducer<DoubleWritable, Text,DoubleWritable, Text> {
    @Override
    protected void reduce(DoubleWritable key, Iterable<Text> values, Context context) throws IOException, InterruptedException {
        for (Text i : values) {
            context.write(key,i);
        }
    }
}
